package org.javabasics.io;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * Created by LUOLIANG on 2016/9/26.
 * NIO Paths
 */
public class PathTest {
    public static void main(String[] args) {
        Path path = Paths.get(".");
        System.out.println("path里包含的路径数量：" + path.getNameCount());
        System.out.println("path的根路径：" + path.getRoot());
        Path absolutePath = path.toAbsolutePath();
        System.out.println("绝对路径：" + absolutePath);
    }
}
